import wapRouters from "./wap";

const routers = [
  // 重定向
  {
    path: '/',
    redirect: '/index',
  }, {
    path: '/index',
    name: 'index',
    meta: {
      title: '2025工业软件创新发展大会',
    },
    component: () => import('@/views/pc/index/Index'),
  }, {
    path: '/news',
    name: 'news',
    meta: {
      title: '大会资讯',
    },
    component: () => import('@/views/pc/news/News'),
  }, {
    path: '/news-show',
    name: 'news-show',
    meta: {
      title: '详情',
    },
    component: () => import('@/views/pc/news/NewsShow'),
  }, {
    path: '/works',
    name: 'works',
    meta: {
      title: '获奖作品',
    },
    component: () => import('@/views/pc/works/Works'),
  }, {
    path: '/works-show',
    name: 'works-show',
    meta: {
      title: '获奖作品详情',
    },
    component: () => import('@/views/pc/works/WorksShow'),
  }, {
    path: '/about-match',
    name: 'about-match',
    meta: {
      title: '关于大赛',
    },
    component: () => import('@/views/pc/aboutMatch/AboutMatchShow'),
  }, {
    path: '/match-show',
    name: 'match-show',
    meta: {
      title: '大赛赛项',
    },
    component: () => import('@/views/pc/match/MatchShow'),
  }, {
    path: '/guests-show',
    name: 'guests-show',
    meta: {
      title: '专家观点',
    },
    component: () => import('@/views/pc/guests/GuestsShow'),
  }, {
    path: '/vote',
    name: 'vote',
    meta: {
      title: '作品投票',
    },
    component: () => import('@/views/pc/vote/Vote'),
  }, {
    path: '/contact-us',
    name: 'contact-us',
    meta: {
      title: '联系我们',
    },
    component: () => import('@/views/pc/contactUs/ContactUs'),
  }, {
    path: '/user-center',
    name: 'user-center',
    meta: {
      title: '个人中心',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/UserCenter'),
  }, {
    path: '/user-center',
    name: 'user-center',
    meta: {
      title: '信息预览',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/UserCenter'),
  }, {
    path: '/company-info',
    name: 'company-info',
    meta: {
      title: '完善公司信息',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/CompanyInfo'),
  }, {
    path: '/team-info',
    name: 'team-info',
    meta: {
      title: '完善团队信息',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/TeamInfo'),
  }, {
    path: '/project-info',
    name: 'project-info',
    meta: {
      title: '完善项目信息',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/ProjectInfo'),
  }, {
    path: '/upload-file',
    name: 'upload-file',
    meta: {
      title: '材料上传',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/UploadFile'),
  }, {
    path: '/change-phone',
    name: 'change-phone',
    meta: {
      title: '修改负责人手机号',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/ChangePhone'),
  }, {
    path: '/change-password',
    name: 'change-password',
    meta: {
      title: '修改密码',
      isUserCenter: true,
    },
    component: () => import('@/views/pc/userCenter/ChangePassword'),
  }, {
    path: '/login',
    name: 'login',
    meta: {
      title: '登录',
    },
    component: () => import('@/views/pc/login/Login'),
  }, {
    path: '/register',
    name: 'register',
    meta: {
      title: '注册',
    },
    component: () => import('@/views/pc/login/register'),
  }, {
    path: '/forget-password',
    name: 'forget-password',
    meta: {
      title: '忘记密码',
    },
    component: () => import('@/views/pc/login/ForgetPassword'),
  }, {
    path: "/wap",
    component: () => import("@/views/wap/Layout"),
    children: [...wapRouters]
  }
]
// 重新组织后导出
export default [
  ...routers,
]
